//
//  UIView+FrameChange.m
//  01-UIView、UIWindow
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+FrameChange.h"

@implementation UIView (FrameChange)

- (void)setCj_x:(CGFloat)cj_x {
    CGRect rect = self.frame;
    rect.origin.x = cj_x;
    self.frame = rect;
}
- (CGFloat)cj_x {
    return self.frame.origin.x;
}

- (void)setCj_y:(CGFloat)cj_y {
    CGRect rect = self.frame;
    rect.origin.y = cj_y;
    self.frame = rect;
}
- (CGFloat)cj_y {
    return self.frame.origin.y;
}
- (void)setCj_width:(CGFloat)cj_width {
    CGRect rect = self.frame;
    rect.size.width = cj_width;
    self.frame = rect;
}
- (CGFloat)cj_width {
    return self.frame.size.width;
}
- (void)setCj_heigh:(CGFloat)cj_heigh {
    CGRect rect = self.frame;
    rect.size.height = cj_heigh;
    self.frame = rect;
}
- (CGFloat)cj_heigh {
    return self.frame.size.height;
}





@end
